# coding=utf-8
from flask import Blueprint, current_app
from flask import redirect
from flask import url_for

html_blueprint = Blueprint('html', __name__)


@html_blueprint.route('/<filename>')
def html(filename):
    if not filename:
        filename = 'index.html'
    filename = 'html/' + filename
    html = current_app.send_static_file(filename)
    return html


@html_blueprint.route('/')
def html2():
    return current_app.send_static_file("html/index.html")

# logo展示
@html_blueprint.route('/favicon.ico')
def get_logo():
    response = current_app.send_static_file("favicon.ico")
    return response


# logo展示
@html_blueprint.route('/erweima.png')
def get_image():
    response = current_app.send_static_file("erweima.png")
    return response